package com.dant.events
{
	import flash.events.Event;
	
	import mx.events.ResizeEvent;
	
	public class AdvancedPanelEvent extends Event
	{
		// constants		
		public static const MIN_WINDOW:String = "minWindow";
		public static const MAX_WINDOW:String = "maxWindow";
		public static const RESTORE_WINDOW:String = "restoreWindow";
		public static const CLOSE_WINDOW:String = "closeWindow";
		public static const MINIMIZED_WINDOW:String = "minimizedWindow";
		public static const MAXIMIZED_WINDOW:String = "maximizedWindow";		
		public static const RESTORED_WINDOW:String = "restoredWindow";		
		public static const CLOSED_WINDOW:String = "closedWindow";		
 
        public var oldWidth:Number;
        public var oldHeight:Number;
        public var newWidth:Number;
        public var newHeight:Number;
        public var oldX:Number;
        public var oldY:Number;
        public var newX:Number;
        public var newY:Number;
 
		public function AdvancedPanelEvent ( event:String, 
		                                     oldWidth:Number = undefined,
		                                     oldHeight:Number = undefined, 
		                                     newWidth:Number = undefined,
		                                     newHeight:Number = undefined, 
		                                     oldX:Number = undefined,
		                                     oldY:Number = undefined,
		                                     newX:Number = undefined,
		                                     newY:Number = undefined,
		                                     bubbles:Boolean = false, 
		                                     cancelable:Boolean = false )
		{
			super ( event, bubbles, cancelable );
			this.oldWidth = oldWidth;
			this.oldHeight = oldHeight;
			this.newWidth = newWidth;
			this.newHeight = newHeight;
			this.oldX = oldX;
			this.oldY = oldY;
			this.newX = newX;
			this.newY = newY;
		}
	}
}